/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.adp.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.adp.adp.compliance.Department;
import za.ac.cput.adp.adp.compliance.impl.DepartmentImp;
import za.ac.cput.adp.adp.compliance.impl.LecturerImp;
import za.ac.cput.adp.adp.compliance.impl.StudentImp;
import za.ac.cput.adp.adp.violation.impl.DepartmentImpl;
import za.ac.cput.adp.adp.violation.impl.LecturerImpl;
import za.ac.cput.adp.adp.violation.impl.StudentImpl;

/**
 *
 * @author Administrator
 */
@Configurable
public class AppConfig {
    @Bean(name = "department")
    public DepartmentImpl department(){
        return new DepartmentImpl();
    }
    
    @Bean(name = "lecturer")
    public LecturerImpl lecturer(){
        return new LecturerImpl();
    }
    
    @Bean(name = "student")
    public StudentImpl student(){
        return new StudentImpl();
    }
    
    @Bean(name = "newDepartment")
    public DepartmentImp newDepartment(){
        return new DepartmentImp();
    }
    
    @Bean(name = "newLecturer")
    public LecturerImp newLecturer(){
        return new LecturerImp();
    }
    
    @Bean(name = "newStudent")
    public StudentImp newStudent(){
        return new StudentImp();
    }
}
